{% load compress %}
{% load i18n %}
{% load static %}
{% load socialaccount %}
{% load oauth_tags %}
{% load html_signal %}

{% include "common/forms/errors.html" %}
{% if no_form %}
    <div id="auth-form" class="password-input-form">
{% else %}
    <form id="auth-form" class="password-input-form" method="post" autocomplete="off">
{% endif %}

{% csrf_token %}

{% compress css %}
    <link rel="stylesheet" type="text/css" href="{% static "common/css/_forms.css" %}" />
{% endcompress %}


{% compress js %}
    <script defer src="{% static "vendored/zxcvbn.js" %}"></script>
    <script defer src="{% static "common/js/formTools.js" %}"></script>
    <script defer src="{% static "common/js/password_strength.js" %}"></script>
{% endcompress %}
<div class="panel-group" id="accordion">
    {% if not hide_login %}
        <div class="panel panel-default">
            <div class="panel-heading text-center" id="headingOne">
                <a class="btn btn-lg btn-primary btn-block mt-3" href="{% oauth_login_url next_url %}">
                    {{ login_button_label }}
                </a>
            </div>
            {% html_signal "eventyay.common.signals.auth_html" sender=request.event request=request next_url=success_url %}
        </div>
    {% endif %}
    {% if not hide_register %}
        <hr>
        <div class="panel panel-default">
            <div class="panel-heading text-center" id="headingTwo">
                <a class="btn btn-lg btn-primary btn-block mt-3" href="{% register_account_url next_url %}">
                  {{ _('Register account') }}
                </a>
            </div>
        </div>
    {% endif %}
</div>
{% if no_form %}</div>{% else %}</form>{% endif %}
